function extract(json, map) {
    var obj = JSON.parse(json);
    var typeArr = [],
        numArr = [];
    for (i = 0; i < obj.content.length; i++) {
        typeArr.push(content[i].orderType);
        numArr.push(content[i].orderNum);
    }
    var sortTypeArr = typeArr.sort(function (a, b) {
        return a - b;
    });
    var sortNumArr = numArr.sort(function (a, b) {
        return a - b;
    });

    var typeArr1 = [];
    var numArr1 = [];
    var num2 = 0;
    var num1 = 0;
    for (var i = 0; i < map.db_result.content.length; i++) {
        var item = map.db_result.content[i];
        var orderType = item.orderType;
        var orderNum = item.orderNum;
        if ([2, 27, 28].includes(orderType)) {
            num2 += orderNum;
        } else if ([1, 12, 13, 14].includes(orderType)) {
            num1 += orderNum;
        } else {
            if (orderNum != 0) {
                typeArr1.push(orderType);
                numArr1.push(orderNum);
            }
        }
    }
    if (num1 != 0) {
        typeArr1.unshift(1);
        numArr1.unshift(num1);
    }
    if (num2 != 0) {
        typeArr1.unshift(2);
        numArr1.unshift(num2);
    }
    var sortTypeArr1 = typeArr1.sort(function (a, b) {
        return a - b;
    });
    var sortNumArr1 = numArr1.sort(function (a, b) {
        return a - b;
    });

    if (sortTypeArr == sortTypeArr && sortNumArr == sortNumArr1) {
        r.assertLog = '成功';
        r.assertResult = true;
    } else {
        r.assertLog = '失败';
        r.assertResult = false;
    }
    return JSON.stringify(r);
}
